<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
    <body>
        <table class="comBorda">
			<td id="tabela-cabecalho"> Medicamento</td>
			<td id="tabela-cabecalho"> Preco </td>
			<td id="tabela-cabecalho"> Unidades</td>
                        <?php
                            include_once'Conexao.php';
                            $bd = new Conexao();
                            $bd->conectar();
                            $obj= $bd->selectMedicamento("");
                            while ($row = @mysql_fetch_row($obj)) {

                                $medicamento = $row[3];
                                $preco = $row[5];
                                $quantidade= $row[4];
                                 echo "<tr>";
                                    echo "<td> $medicamento </td>";
                                    echo "<td>R$ $preco</td>";
                                    echo "<td>$quantidade</td>";
                                    echo "<td><a href=inserts.php?act=rem&id=$id>excluir</td>";
                                    echo "<td><a href=inserts.php?act=alt&id=$id>alterar</td>";
                                echo "</tr>";
                           }
                           if($_GET['act'] == 'rem'){
                               echo "";
                                }elseif($_GET['act'] == 'alt'){
                                       echo "";
                                }
                        ?>

		   </table>
    </body>
</html>
